using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Transaction
{
   
    public class InstructionHeader 
    {
        #region Properties
              // INSTRUCTION_HEADER_ID
        public virtual int HeaderID { set; get; }
      // INSTRUCTION_TO
        public virtual String TO { set; get; }
      // INSTRUCTION_ATTENTION
        public virtual String Attention { set; get; }
      // INSTRUCTION_MAIL
        public virtual String Mail { set; get; }
      // INSTRUCTION_COMPANY_NAME
        public virtual String CompanyName { set; get; }
      // INSTRUCTION_COMPANY_ID
        public virtual int? CompanyID { set; get; }
      // INSTRUCTION_FINANCIAL_INSTRUMENT_NAME
        public virtual String FinancialInstrumentName { set; get; }
      // INSTRUCTION_FINANCIAL_INSTRUMENT_ID
        public virtual int? FinancialInstrumentID { set; get; }
      // INSTRUCTION_COMPANY_TEL
        public virtual String CompanyTel { set; get; }
      // INSTRUCTION_COMPANY_FAX
        public virtual String CompanyFax { set; get; }
      // INSTRUCTION_COMPANY_MAIL
        public virtual String CompanyMail { set; get; }
      // INSTRUCTION_TRADE_DATE
        public virtual DateTime? TradeDate { set; get; }
      // INSTRUCTION_SETTLEMENT_DATE
        public virtual DateTime? SettlementDate { set; get; }
      // INSTRUCTION_CREATE_DATE
        public virtual DateTime? CreateDate { set; get; }
      // INSTRUCTION_STATUS
        public virtual string Status { set; get; }
        public virtual string CreateUser { get; set; }
        public virtual string AssetClassName { get; set; }

        public virtual int? AssetClassID { get; set; }
        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(InstructionHeader) && !(obj is InstructionHeader))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}",HeaderID);
        }




        
    }


}